<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html>

	<head>
		<title>系统统计-物品采购统计</title>
		<meta charset="utf-8">
		<link rel="stylesheet" type="text/css" href="<%=basePath %>libs/bootstrap-3.3.7-dist/css/bootstrap.min.css">
		<link rel="stylesheet" type="text/css" href="<%=basePath %>css/reset.css">
		<link rel="stylesheet" type="text/css" href="<%=basePath %>css/style.css">
		<link rel="stylesheet" type="text/css" href="<%=basePath %>css/iframe.css">
	</head>

	<body>
		<header id="mainHeader"></header>
		<div id="mainContent">
			<div id="mainContent_content">
			<div class="page_header"><a>物品退货统计</a></div>
				<div class="search">
					<form action="<%=basePath%>statistics/returnorderSelectByWhere.do" method="post" class="form">
						<input type="hidden" name="currentPage" value="1">
						<p>
							<label>物品代码</label> <input type="text"
							name="itemCode"
							value="${itemsStorageStatisticsPage.itemCode }" class="form-control"></input>
							<label>时间</label> <input type="text"
							name="starttime" value="${itemsStorageStatisticsPage.starttime }"
							readonly
							onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})" class="form-control"></input>
							<label class="dateSpan">至</label> <input
							type="text" name="endtime" value="${itemsStorageStatisticsPage.endtime }"
							readonly
							onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})" class="form-control"></input>
						   <label>中文名称</label> <input type="text"
							name="chineseName" value="${itemsStorageStatisticsPage.chineseName }" class="form-control"></input>
						</p>
						<p>
							<label>状态</label> <select name="status" class="form-control select">
								<option value="5">全部</option>
								<option value="0"
										<c:if test="${itemsStorageStatisticsPage.status==0}">selected</c:if>>未处理</option>
										<option value="1"
										<c:if test="${itemsStorageStatisticsPage.status==1}">selected</c:if>>已处理</option>
							</select>
							<span class="btn"> <input type="submit" value="搜索" class="btn btn1"></input>
							<input type="button" value="清空" onclick="clearSearchParam();" class="btn btn2"></input>
						</span>
						</p>
					</form>
				</div>
				<div class="tableBox box" >
					<table class="table table-bordered table_text_center">
						<thead>
							<tr>
								<th>序号</th>
								<th>物品代码</th>
								<th>物品条码 </th>
								<th>中文名称</th>
								<th>规格</th>
								<th>单位</th>
								<th>退货数量</th>
								<th>最后修改时间</th>
								<th>仓库</th>
								<th>状态</th>
							</tr>
						</thead>
						<tbody>
							<c:forEach items="${iss }" var="item" varStatus="i">
								<tr>
									<td>${i.index+1 }</td>
									<td>${item.itemCode }</td>
									<td>${item.articleBarCode }</td>
									<td>${item.chineseName }</td>
									<td>${item.purchaseSpecifications }</td>
									<td>${item.salesUnit }</td>
									<td>${item.returnQuantity }</td>
									<td>
										<fmt:formatDate value='${item.lastModifiedTime }' type='both' />
									</td>
									<td>${item.warehouseName }</td>
									<td>
										<c:if test="${item.status==0||item.status==null}">未处理</c:if>
										<c:if test="${item.status==1}">已处理</c:if>
									</td>
								</tr>
							</c:forEach>
						</tbody>
					</table>
				</div>
				<jsp:include page="/jsp/basic/page.jsp"></jsp:include>
			</div>
			<jsp:include page="/jsp/basic/prompt.jsp"></jsp:include>
		</div>
		<script src="<%=basePath%>js/jquery-3.2.1.min.js"></script>
		<script src="<%=basePath%>libs/bootstrap-3.3.7-dist/js/bootstrap.js"></script>
		<script src="<%=basePath%>My97DatePickers/WdatePicker.js"></script>
		<script src="<%=basePath%>js/public.js"></script>
		<script type="text/javascript">
			//清空搜索条件
			function clearSearchParam() {
				$(".search input:text").val("");
				$(".search select").val("");
			}
		</script>
	</body>

</html>